package GUI;

import javax.swing.JOptionPane;
import javax.swing.JPanel;

/**
 * The Class AbstractPanelGUI extends JPanel.
 * This class represents an abstract panel.
 * 
 */
public abstract class AbstractPanelGUI extends JPanel {

		/** The Constant Width. */
		protected final static int Width=500;
		
		/** The Constant Height. */
		protected final static int Height=400;
		/**
	 	* Initialize the content of the frame.
	 	*/
		public abstract void initialize();
		
		/**
		 * Display warning message.
		 *
		 * @param msg the message.
		 */
		public void displayWarningMessage(String msg)
		{
			JOptionPane.showMessageDialog(this, msg,"Warning",JOptionPane.WARNING_MESSAGE);
		}
		
		/**
		 * Display message.
		 *
		 * @param msg the message
		 */
		public void displayMessage(String msg)
		{
			JOptionPane.showMessageDialog(this, msg,"Info",JOptionPane.INFORMATION_MESSAGE);
		}
	


}
